<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023-06-10
  Time: 15:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <form action="/list" method="post">
        姓名 <input type="text" name="user"><input type="submit" value="查询">
    </form>
</head>
<body>
<table border="1">
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>性别</th>
        <th>年龄</th>
        <th>电话</th>
        <th>所属部门</th>
    </tr>
   <c:forEach items="${list}" var="em">
       <tr>
           <td>${em.empid}</td>
           <td>${em.empname}</td>
           <td>${em.sex}</td>
           <td>${em.age}</td>
           <td>${em.tel}</td>
           <td>${em.deptname}</td>
       </tr>
   </c:forEach>
</table>
</body>
</html>
